<?php

use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Api\RabbitmqController;
use App\Http\Controllers\Api\MenuController;
use App\Http\Controllers\Api\OrderController;

Route::group(['prefix'=>'cyf'],function (){
    //生产者
    Route::get('production',[RabbitmqController::class,'production']);
    //消费者测试
    Route::get('consume',[RabbitmqController::class,'consume']);

    //小程序菜单列表
    Route::get('menu',[MenuController::class,'index']);
    //小程序子菜单
    Route::get('menuson',[MenuController::class,'menuson']);
    //生成订单
    Route::get('createOrder',[OrderController::class,'createOrder']);
    //同步回调地址
    Route::get('return_url',[OrderController::class,'returnUrl']);
    //异步回调地址
    Route::post('notify_url',[OrderController::class,'notifyUrl']);
    //text
    Route::get('text',[OrderController::class,'text']);

});

